<!--门诊医嘱编辑，医嘱新开-->
<script setup lang="ts">


import AddDiagnose from "@/views/doctorStation/component/cpoeTabs/cpoeInfo/addDiagnose.vue";
import TestTable from "@/views/doctorStation/component/cpoeTabs/cpoeInfo/testTable.vue";

defineOptions({
  name: 'OpenCpoeDialog'
})

const dialogVisible = defineModel({ default: false })

const emit = defineEmits(['confirm', 'close']);
const confirm = () => {
  emit('confirm');
  dialogVisible.value = false;
}
const close = () => {
  emit('close');
  dialogVisible.value = false;
}

const userInfo = reactive({
  name: '张三',
  sex: '男',
  age: '18',
  fee: '普通',
  feeType: '现金',
  feeAmount: '100',
})

</script>

<template>
  <el-dialog
    v-model="dialogVisible"
    title="医嘱编辑"
    width="1200"
    :before-close="close"
    :close-on-click-modal="false"
  >
    <div class="openCpoeDialog">
      <div class="userInfo flex ac">
        <el-text class="mr15" type="primary">姓名：{{ userInfo.name }}</el-text>
        <el-text class="mr15" type="primary">性别：{{ userInfo.sex }}</el-text>
        <el-text class="mr15" type="primary">年龄：{{ userInfo.age }}</el-text>
        <el-text class="mr15" type="primary">费别：{{ userInfo.fee }}</el-text>
        <el-text class="mr15" type="primary">医疗付款方式：{{ userInfo.feeType }}</el-text>
        <el-text class="mr15" type="primary">预交款：{{ userInfo.feeAmount }}</el-text>
      </div>
      <add-diagnose></add-diagnose>
<!--      <test-table></test-table>-->
    </div>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="close">关闭</el-button>
        <el-button type="primary" @click="confirm">
          保存
        </el-button>
      </div>
    </template>
  </el-dialog>
</template>

<style scoped lang="scss">
.openCpoeDialog {
  min-height: 500px;
}
</style>
